package com.zjun.errorCode;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
public enum BaseErrorCode implements IErrorCode{
    CLIENT_ERROR("A000001","客户端错误"),
    SERVICE_ERROR("B000001","系统执行出错"),
    REMOTE_ERROR("C000001", "调用第三方服务出错"),

    //========================================================
    IDEMPOTENT_TOKEN_NULL_ERROR("A000200", "幂等Token为空");

    private final String code;
    private final String message;
    @Override
    public String errorCode() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
